home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Popular Request
/
By Popular Request (Arsenal Computer)(SysOptics Distribution System).ISO
/
amiga3
/
plfuti20.lha
/
PLFUtil
/
docs
/
PLFUtil.doc
< prev
Wrap
Text File
|
1994-01-09
|
18KB
|
494 lines
P L F U t i l
by Patrick Langer
Version 2.0
20.11.93
1.0 INTRODUCTION
Welcome to PLFUtil. This is the first release of my replacement for
Tim Astons fileutil.rexx written for TransAmiga V1.1. As the original
program was just a basic arexx program, it hadn't that much features.
I needed a program which reads my filenotes and put them into the
'Files.BBS' without cutting them after 40 characters, so I modified
this routine. Then I started to use download counters (made with
DCount 1.30 by T. Boerkel), which were written into Files.BBS. On
the other hand, the newer releases of my File Request handler (FFRS
V2.01b by F. Wauquier) had the option to write a download counter
into the filenotes. This was the problem I tried to solve with my
first (internal) versions of PLFUtil. As I programmed it, new ideas
came to my mind and were added. And this is it and I think it's quite
good :-)
2.0 LEGAL STUFF
2.1 This program (PLFUtil) is copyrighted (c) 1993 by Patrick Langer.
2.2 Permission is hereby granted to distribute this program and
associated documentation provided all of the following conditions are
met :
a. No charge is made except for media costs, a small copying fee
(which can be any amount up to the cost of the media used) and
postage charges.
b. The original archive should remain intact. This means that at
least the following files must be included in unaltered form:
PLFUtil.rexx
PLFUtil.doc
You may archive these files using a popular archiving package
(eg. LhA).
c. If you are asked in writing by myself to stop distributing
this program, you must do so immediately.
d. No part of this software package may be used in part or whole
for commercial purposes without prior written permission from
myself.
2.3. You may modify the PLFUtil.rexx file for your own use. Modified
copies must not be distributed (but you can send me a note on what
you've modified).
2.4. This software is provided without warranty. I take no
responsibility for any consequences of the use or misuse of this
software.
2.5. This program may be used for free in any non commercial
environment.
3.0 FEATURES
PLFUtil has the following features :
* it can read filenotes and put them into a Files.BBS
* it can read a Files.BBS and put the descriptions into the
corresponding filenotes
* it can handle descriptions or filenotes longer than 40 characters
* it can sort your Files.BBS alphabetically
* A kind of bulk upload feature: if a file has no filenote, PLFUtil
will a) ask you to give a description or b) put in a given default
description
* PLFUtil can read your file.cfg and perform actions on ALL fileareas
or just in a given path
* Now PLFUtil can create a filelisting with many options
Usage:
rx PLFUtil [command] [options]
Command can be:
N
Create filenotes from Files.BBS
B
Create Files.BBS from filenotes
C
Create Filelisting from Files.BBS
Options for all commands:
CONFIGS
<path> Path for file.cfg [Default: bbs:configs/]
Options for B/N only:
PATH
<path> Scan only given dir [Default: Scan all]
DCOUNT
Create Download Counter [Default: No Dload Counters]
LOG
<path> Path to transamiga.log (needs DCOUNT) [Default: bbs:system/transamiga.log]
Options for B only:
NOSORT
Do not sort Files.BBS [Default: Sort]
QUIET
Do not ask for file description [Default: Ask for it]
Options for C only:
NAME
<name> Path and name for filelisting [Default: ram:Fileliste]
FROM
<level> Access level to start with [Default: 0]
TO
<level> Access level to end with [Default: 255]
DAYS
<days> Age of files to appear [Default: list all files]
NEW
<days> Age of files to be marked NEW (*) [Default: 14]
HEADER
<name> Name for textfile to be included as header [Default: no header]
4.1 Description of commands
4.1.1 The 'N' option:
This command will create filenotes using the descriptions in the
Files.BBS. There are several options to use described below.
4.1.2 The 'B' option:
With this command you can create a Files.BBS from the filenotes added
to the files in your file areas (if you have them. If not, you can
first create them using the 'N' option).
4.1.3 The 'C' option:
This command will create those fancy filelistings often used in BBS'.
The options described later will enable you to create kinda 'Allfiles'
listings and 'Newfiles' listings, using given ranges of access levels
and marking new files (defined by user) and so on. When no files are
listed (especially when using the DAYS option) no file list will be
created. This is useful when posting 'Newfiles' messages in a BBS or
so to avoid 'empty' file lists. See below for more detailed
information.
4.2 Description of options
I will now describe the numerous options of PLFUtil:
4.2.1 Option for all commands:
CONFIG <path>
Here you can define your path to the file.cfg.
Default: bbs:configs/
4.2.2 Options for B/N only:
PATH <path>
When you want to use the B or N command just on one area, you can
define a path here which will be used then.
DCOUNT
Will create Download counter like DCount (by T. Boerkel) in the
format '[?]'. This option will add [0] where no Download counter
exists. It also scans the transamiga logfile for downloads, counts
them and add them to the download counter.
Default: No Download counters are created
LOG <path>
This defines the path to the TransAmiga logfile. The path is needed
by the DCOUNT option.
Default: bbs:system/transamiga.log
4.2.3 Options for B only:
NOSORT
This will suppress the sorting of Files.BBS
Default: Sort
QUIET
This will suppress the question for a file description where none is
found in the filenotes. If this option is chosen, a default
description will be used.
4.2.4 Options for C only:
NAME <name>
The path and name of the file list you want to create
[Default: ram:Fileliste]
FROM <level>
Access level with which the file list will start
[Default: 0]
TO <level>
Access level with which the file list will end
[Default: 255]
DAYS <days>
Age of files in number of days which will appear in the file list
[Default: list all files]
NEW <days>
Age of files in number of days to be marked as NEW with an asterisk
(*) after the date
[Default: 14]
HEADER <name>
Name for textfile to be included as a header of the file list
[Default: no header]
<path> must be a valid AmigaDOS path and must end with an ':' or '/',
e.g. 'FILE:GAMES/'
ATTENTION!
PLFUtil will not take care of your old Files.BBS! It will simply
delete it and create the new one. If you use '\' lines for area
descriptions or the like, they will be deleted! Remember, you have
been warned.
If you want to test PLFUtil, I suggest that you choose one file area
directory, make a backup of your original Files.BBS and start testing
by creating a PLFUtil-style Files.BBS with 'rx PLFUtil B <path>'.
With this, you can play around (even better, make this with the long
description option, also make a copy of this Files.BBS and you can
play around as you like :-) )
5.0 EXAMPLES
In the following I will give some examples for the use of PLFUtil.
5.1 Using the 'B' command
You have this file area:
----------------------------------------------------------------------
Directory "file:modules" on Freitag 08-Okt-93
EaglePlayer101.lha 307274 ----rwed 12-Sep-93 12:41:09
: [0] absolut guter Mod-Player
exoticripper.DMS 187597 ----rwed 13-Mai-93 18:53:53
: [0] guter Module-Ripper
JukeBox11.lha 14329 ----rwed 12-Sep-93 16:02:04
: [0] --- No description available ---
STP140.lha 90298 ----rwed 12-Sep-93 15:13:42
: [0] Mod-Player mit schoener Oberflaeche und guten Funktionen!
ExoticRipper20.lha 35460 ----rwed 12-Sep-93 23:14:24
: [0] Sound Ripper, gut!
Jukebox.lha 124685 ----rwed 28-Feb-93 20:44:58
: [0] Abspielprogramm fuer Audio-CDs per CD-ROM
ProTracker301.lha 132065 ----rwed 12-Sep-93 22:08:13
: [0] DER Tracker!
Files.BBS 989 ----rwed Gestern 22:01:11
upd1_30.lha 22316 ----rwed 16-Mai-93 00:04:26
: [0] winziger Sound-Player, gut geeignet fuer Scripts u.ae.
DSound130.lha 27796 ----rwed 21-Sep-93 00:59:24
: [0] Spielt Samples
DMODP170.ADS 2209 ----rwed Gestern 04:06:02
: ADSWORK2: DModP V1.70 - Long Desc.
DMODP170.LHA 76483 ----rwed Gestern 04:06:07
: ADSWORK2: Module player for PT/MMD0-2/DSS0 modules.
12 files - 2036 blocks used
By using 'rx plfutil B file:modules/' you will get this Files.BBS:
----------------------------------------------------------------------
DMODP170.ADS 2209 931007 ADSWORK2: DModP V1.70 - Long Desc.
DMODP170.LHA 76483 931007 ADSWORK2: Module player for
\ PT/MMD0-2/DSS0 modules.
DSound130.lha 27796 930921 [0] Spielt Samples
EaglePlayer101.lha 307274 930912 [0] absolut guter Mod-Player
exoticripper.DMS 187597 930513 [0] guter Module-Ripper
ExoticRipper20.lha 35460 930912 [0] Sound Ripper, gut!
Jukebox.lha 124685 930228 [0] Abspielprogramm fuer Audio-CDs per
\ CD-ROM
JukeBox11.lha 14329 930912 [0] --- No description available ---
ProTracker301.lha 132065 930912 [0] DER Tracker!
STP140.lha 90298 930912 [0] Mod-Player mit schoener Oberflaeche
\ und guten Funktionen!
upd1_30.lha 22316 930516 [0] winziger Sound-Player, gut geeignet
\ fuer Scripts u.ae.
This Files.BBS is sorted, using the long description feature. Look at
it and you will see how PLFUtil works.
5.3 Using the 'N' command
Using 'rx plfutil N file:modules/' will act vice versa to the above
example.
5.4 Using th 'C' command
Using 'rx plfutil C' will create the file list below (for my system):
----------------------------------------------------------------------
Listing of files for Access level 0 to 255:
File Area 1 : AMIGA: Boxinternes Access Level: 0
Name Size Date Description
+--------------------+-------+---------+-----------------------------------------+
|02463103.LHA | 28353|26-09-93*|[3] --- No description available --- |
|02463103.LST | 132620|06-10-93*|Fileliste der Jugglers Inn (ungepackt) |
|NEWFILES.LHA | 7748|26-09-93*|[2] --- No description available --- |
|NEWFILES.LST | 19529|06-10-93*|Neue Files der letzten 14 Tage |
| | | |(ungepackt) |
+--------------------+-------+---------+-----------------------------------------+
| 4 Files in this area. Total size: 188250 bytes |
+--------------------------------------------------------------------------------+
File Area 2 : AMIGA: File-Listen anderer BBS Access Level: 0
Name Size Date Description
+--------------------+-------+---------+-----------------------------------------+
|02461416.lha | 59408|11-09-93 |[2] Fileliste der Amiga Universe |
| | | |(07195-61970) |
|02473501.lha | 38537|11-09-93 |[0] Fileliste von Hardy's Error Node |
| | | |(089-8206827) |
|24070106.lzh | 87870|11-09-93 |[1] Fileliste der Intuition Base |
| | | |(07152-45768) |
|aoplist.lha | 217462|07-09-93 |[3] Fileliste der Amiga on Phone |
| | | |(0721-859432) |
+--------------------+-------+---------+-----------------------------------------+
| 4 Files in this area. Total size: 403277 bytes |
+--------------------------------------------------------------------------------+
[...]
End of listing.
** Number of Files listed: 1369
** Total size of Files listed: 192734802
Filelist created with PLFUtil V2.0 by Patrick Langer on 08 Oct 1993 at 00:51:05
----------------------------------------------------------------------
6.0 ABOUT THE DESCRIPTION FORMATm
6.1 The Idea
In TransAmiga I always disliked the limit of descriptions to 40
characters. When for examples receiving files from ADS, I alwys added
the descriptions send as filenotes to the archives. In the TA file
listings, due to the limit of 40 characters, some of these file
descriptions were crippled in a way that you could hardly recognize a
description for that file. Also, the amount of information you could
enter was limited. As many programs used already the filenotes (which
can actually be twice as long as the TA description) to create file
listings or the Files.BBS, I tried to find a way to use almost the
complete filenote as description for TA. The simpliest way to manage
this was to take the part of the filenote, that couldn't be displayed
by TA and put it into the next line as a '\' comment. That's all!
6.2 Known Problems
Well, first of all, people already using the '\' comment lines for
other purposes will not be happy with PLFUtil because (as mentioned
above) it will simply ignore them and delete them.
The next problem appears when using FileScroller by Eric Sauvageau.
It sees my additional description lines as comment lines and displays
them in an other color as the rest. Looks a bit funny but does no
harm :-)
There may be problems with file list generators which will ignore the
'\' comment lines (or simply strip them from the Files.BBS like
Rifle2.10 by M.Kuhne). Problems may also occure when these programs
try to sort the Files.BBS alphabetically. At the present, I use EFLG
by Robert Hofmann, which is actually no real TA program but uses the
filenotes also in full length (also spread over several lines)
7.0 OTHER THINGS
7.1 The Future
Well, I have some ideas in mind which still want to be realised:
* no destroying of '\' comments previously present
* optimizing routines
* Rewrite in E!
* some other small things
7.2 Bug Reports, Suggestions, Loads of money and bags of gold :-)
via E-mail:
planger@juglers.in-ulm.de
via FidoNet:
Patrick Langer
2:246/3103
via AmigaNet:
Patrick Langer
39:173/30
or, via snail-mail:
Patrick Langer
Dr.-Rau-Weg 8
73312 Geislingen
GERMANY
or, you can try to reach me (or my answer machine) by calling:
49-7331-44435
If you find this tool useful, please send me a short note!
7.3 Acknowledgements
Thanks go to:
- Tim Aston for his wunderful BBS program TransAmiga (still waiting
for the next version!)
- Sami Radwan for having such a good TA support BBS here in Germany
- T. Boerkel for his DCount (quite fast!)
- E. Sauvageau for his beautiful and amazing FileScroller
- of course, Commodore for this great machine
- and to all other, who deserve to be mentioned in this part of a doc
but never were
7.4 History
1.0 first public release (27.09.93)
1.1 fixed some nasty bugs (29.09.93)
1.2 changed date conversion routine (30.09.93)
1.3 started adding the filelisting option (01.10.93)
1.4 most features implemented now. Removed the config part in the
programm text and put it into the command line (06.10.93)
1.5 finished implementing the filelisting option, also made some
optical improvements and optimized some code (08.10.93)
1.6 now uses FileSort (included in the archive) by Rod Schnell to sort
the Files.BBS (15.10.93)
1.7 some bugs fixed (20.10.93)
1.9 added the Download counter feature (14.11.93)
2.0 second public release (20.11.93)